package sg.edu.nus.iss.vmcs.entity;

/*
 * Copyright 2003 ISS.
 * The contents contained in this document may not be reproduced in any
 * form or by any means, without the written permission of ISS, other
 * than for the purpose for which it has been supplied.
 *
 */

public class Coin extends StoreObject {

	private String id;
    private double value;
    private double weight;
    
    private double radius;
    private double thickness;
    private String headImg;
    private String tailImg;

    public Coin () {
    }
    /*
    public Coin (String id, double value, double weight) {
    	this.id = id;
        this.value = value;
        this.weight = weight;
    }
    */
    public String getId() {
		return id;
	}
	public void setId(String id) {
		this.id = id;
	}
	public void setValue(double v){
      value = v;
    }

    public Coin(String id, double value, double weight, double radius,
			double thickness, String headImg, String tailImg) {
		this.id = id;
		this.value = value;
		this.weight = weight;
		this.radius = radius;
		this.thickness = thickness;
		this.headImg = headImg;
		this.tailImg = tailImg;
	}
    
	public double getRadius() {
		return radius;
	}
	public void setRadius(double radius) {
		this.radius = radius;
	}
	public double getThickness() {
		return thickness;
	}
	public void setThickness(double thickness) {
		this.thickness = thickness;
	}
	public String getHeadImg() {
		return headImg;
	}
	public void setHeadImg(String headImg) {
		this.headImg = headImg;
	}
	public String getTailImg() {
		return tailImg;
	}
	public void setTailImg(String tailImg) {
		this.tailImg = tailImg;
	}
	public void setWeight(double wt){
      weight = wt;
    }


    public double getWeight () {
        return (weight);
    }

    public double getValue () {
        return (value);
    }
    
    public String[] asArray() {
    	return new String[]{""+weight, ""+radius, ""+thickness, ""+headImg, ""+tailImg};
    }

  }
